package com.spj.entity;

import java.util.List;

/**
 * @author :spj
 * @Date:2022/3/31
 * @description:
 */
public class JUser {
    private String name;
    private int age;
    private JTwo jTwo;
    private List<JOne> ones;

    public JUser() {
    }

    public JUser(String name, int age, JTwo jTwo, List<JOne> ones) {
        this.name = name;
        this.age = age;
        this.jTwo = jTwo;
        this.ones = ones;
    }

    public List<JOne> getOnes() {
        return ones;
    }

    public void setOnes(List<JOne> ones) {
        this.ones = ones;
    }

    public JTwo getjTwo() {
        return jTwo;
    }

    public void setjTwo(JTwo jTwo) {
        this.jTwo = jTwo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "JUser{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", jTwo=" + jTwo +
                ", ones=" + ones +
                '}';
    }
}
